package request

type SendSms struct {
	Mobile string `json:"mobile" form:"mobile" binding:"required"`
}
type Register struct {
	Mobile   string `json:"mobile" form:"mobile" binding:"required"`
	Password string `json:"password" form:"password" binding:"required"`
	Nickname string `json:"nickname" form:"nickname" binding:"required"`
}
type Login struct {
	Mobile   string `json:"mobile" form:"mobile" binding:"required"`
	Password string `json:"password" form:"password" binding:"required"`
}
type AddBrand struct {
	BrandName  string `json:"brand_name" form:"brand_name"  binding:"required"`
	BrandPrice int64  `json:"brand_price" form:"brand_price"  binding:"required"`
}

// 绑定设备
type EquipmentBinding struct {
	EquipmentId int64 `json:"equipment_id" form:"equipment_id"  binding:"required"`
}

type Del struct {
	Id int32 `json:"id" form:"id"`
}

type UserUpdatePassword struct {
	Id          int32  `json:"id" form:"id"`
	Password    string `json:"password" form:"password"`       //旧密码
	NewPassword string `json:"newPassword" form:"newPassword"` //新密码
	RePassword  string `json:"rePassword" form:"rePassword"`   //确认密码
}

// 用户添加个人资料
type UserProfileCreated struct {
	NickName  string `json:"nickName" form:"nickName"`
	Gender    uint64 `json:"gender" form:"gender"`
	Email     string `json:"email" form:"email"`
	Signature string `json:"signature" form:"signature"`
}

// 用户修改个人资料
type UserProfileUpdated struct {
	NickName  string `json:"nickName" form:"nickName"`
	Gender    uint64 `json:"gender" form:"gender"`
	Email     string `json:"email" form:"email"`
	Signature string `json:"signature" form:"signature"`
}

// 用户意见反馈
type UserOpinionAdd struct {
	Name           string `json:"name" form:"name"`
	Mobile         string `json:"mobile" form:"mobile"`
	OpinionType    string `json:"opinionType" form:"opinionType" binding:"required"`
	OpinionTitle   string `json:"opinionTitle" form:"opinionTitle" binding:"required"`
	OpinionDetails string `json:"opinionDetails" form:"opinionDetails" binding:"required"`
}

// 人脸注册
type RegisterFaceReq struct {
	FaceImg string `json:"face_img" form:"face_img" binding:"required"`
}

// 人脸登录
type LoginFaceReq struct {
	FaceImg string `json:"face_img" form:"face_img" binding:"required"`
}

// 信任设备添加
type TrustedDeviceAdd struct {
	DeviceName string `json:"deviceName" form:"deviceName"`
	DeviceType string `json:"deviceType" form:"deviceType"`
	OsType     string `json:"osType" form:"osType"`
}

// 信任设备删除
type TrustedDeviceDel struct {
	Id int64 `json:"id" form:"id"`
}

// 信任设备修改
type TrustedDeviceUpdate struct {
	Id         int64  `json:"id" form:"id"`
	DeviceName string `json:"deviceName" form:"deviceName"`
	DeviceType string `json:"deviceType" form:"deviceType"`
	OsType     string `json:"osType" form:"osType"`
}

// 信任设备展示
type TrustedDeviceFind struct {
}

// 会员权益添加
type MemberBenefitAdd struct {
	Name  string `json:"name" form:"name"`   //权益名称
	Desc  string `json:"desc" form:"desc"`   //权益描述
	Types uint64 `json:"types" form:"types"` //权益类型
}

// 会员权益展示
type MemberBenefitFind struct {
}

// 用户会员添加
type MemberAdd struct {
	LeveId uint64 `json:"leveId" form:"leveId"` //等级id
}

// 用户会员详情
type MemberDetail struct {
}

// 会员续费
type MemberServiceAdd struct {
	LevelId  uint64 `json:"levelId" form:"levelId"`   //等级id
	Duration uint64 `json:"duration" form:"duration"` //续费时间
}

// 会员等级添加
type MemberLevelAdd struct {
	BenefitId uint64  `json:"benefitId" form:"benefitId"` //权益id
	Name      string  `json:"name" form:"name"`           //会员名称
	Price     float64 `json:"price" form:"price"`         //会员价格
	Level     int32   `json:"level" form:"level"`         //会员等级
	Desc      string  `json:"desc" form:"desc"`           //会员描述
}

// 会员权益详情
type MemberBenefitDetail struct {
	Id uint64 `json:"id" form:"id"`
}

// 会员等级展示
type MemberLevelFind struct {
	Page     int32 `json:"page" form:"page"`
	PageSize int32 `json:"pageSize" form:"pageSize"`
}

// 会员等级详情
type MemberLevelDetail struct {
	Id uint64 `json:"id" form:"id"`
}

// 会员等级删除
type MemberLevelDel struct {
	Id uint64 `json:"id" form:"id"`
}

// 收藏添加
type AddCollectReq struct {
	UserId  int64 `json:"user_id" form:"user_id" binding:"required"`
	GoodsId int64 `json:"goods_id" form:"goods_id" binding:"required"`
}

// 收藏展示
type CollectInfoReq struct {
}

// 收藏删除
type DeleteCollectReq struct {
	Id uint64 `json:"id" form:"id" binding:"required"`
}

// 勋章规则添加
type BadgeRulesAdd struct {
	Name      string `json:"name" form:"name"`           //勋章名称
	Desc      string `json:"desc" form:"desc"`           //勋章描述
	Condition string `json:"condition" form:"condition"` //获得条件
}

// 勋章添加
type UserBadgesAdd struct {
	UserId  uint64 `json:"userId" form:"userId"`   //用户id
	RulesId uint64 `json:"rulesId" form:"rulesId"` //规则id
}

// 勋章规则详情
type BadgeRulesDetail struct {
	Id uint64 `json:"id" form:"id"`
}

// 勋章展示
type UserBadgesFind struct {
}
